package com.zeus.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.omg.CORBA.COMM_FAILURE;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.List;

/**
 * @author 冯扬龙
 * @date 2021/6/10 12:20
 */
@Component
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Post {

    private Integer id;
    private String uname;
    private String typeName;
    private String title;
    private String content;
    private String picture;
    private String address;
    private Date ctime;
    private Integer status;
    private Integer flag;
    private Integer viewCount;
//    评论数
    private Integer counts;


    /**
     * 前端渲染，对着物品点击查看详情以后进入到详情页面
     */
    private User user;
    private List<Comment> commentList;
}
